<?php use_helper('Asset','Javascript','I18N')?>
<?php echo form_tag('user/login')?>

  <table>
    <thead>
      <tr><td><?php echo $form->renderGlobalErrors() ?></td></tr>
    </thead>
    <tbody>
      <?php foreach (array('username', 'password') as $field): ?>
      <tr class="form_errors" colspan="2">
        <?php echo $form[$field]->renderError() ?>
     </tr>
      <tr class="sf_admin_form_row">
        <td>
          <?php echo $form[$field]->renderLabel()?>
        </td>
        <td>
          <?php echo $form[$field] ?>
        </td>
      </tr>
      <?php endforeach?>
    </tbody>
  </table>
  <input type="submit" value="Login">
</form>
